<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<input type="button" id="btn1" value="open">
	<script>
		window.onload = function(){
			var oBtn = document.getElementById('btn1')
			oBtn.onclick=function(){
				window.open('http://www.baidu.com','_blank')
			}
		}	
	</script>
</body>
</html>